<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <meta name="description" content="">
  <meta name="author" content="">


  <title> 编辑页面</title>

  <!-- Bootstrap core CSS -->
  <!-- <link href="../../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet"> -->
  <link rel="stylesheet" href="../../public/css/bootstrap.css">
  <!-- Custom styles for this template -->
  <link href="../../public/css/main.css" rel="stylesheet">

</head>

<body>

  <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
          aria-expanded="false" aria-controls="navbar">
          <span class="sr-only"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">my node demo</a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav navbar-right">
          <li><a href="#">Dashboard</a></li>
          <li><a href="#">Settings</a></li>
          <li><a href="#">Profile</a></li>
          <li><a href="#">Help</a></li>
        </ul>
        <form class="navbar-form navbar-right">
          <input type="text" class="form-control" placeholder="Search...">
        </form>
      </div>
    </div>
  </nav>

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar">
        <ul class="nav nav-sidebar">
          <li class="active"><a href="#">Overview <span class="sr-only">(current)</span></a></li>
          <li><a href="#">Reports</a></li>
          <li><a href="#">Analytics</a></li>
          <li><a href="#">Export</a></li>
        </ul>
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h1 class="page-header">编辑页面</h1>
        <div class="table-responsive">

          <form action="/edit" method="post">
            <input type="hidden" name="id" value="{{data.id}}">
            <div class="form-group">
              <label for="nameid">name</label>
              <input type="text" class="form-control" value="{{data.name}}" name="name" id="nameid" placeholder="name">
            </div>
            <div class="form-group">
              <label for="age">age</label>
              <input type="text" class="form-control" value="{{data.age}}" name="age" id="age" placeholder="age">
            </div>
            <div class="form-group">
              <label for="">gender</label>
              <div>
                <label class="radio-inline">
                  <input type="radio" name="gender" id="" value="0" {{if data.gender == '0'}}checked{{/if}}> 男
                </label>
                <label class="radio-inline">
                  <input type="radio" name="gender" id="" value="1" {{if data.gender == '1'}}checked{{/if}}> 女
                </label>
              </div>
            </div>
            <div class="form-group">
              <label for="hobbies">hobbies</label>
              <input type="text" class="form-control" name="hobbies" id="hobbies" value="{{data.hobbies}}">
            </div>
            <button type="submit" class="btn btn-default">Submit</button>
          </form>



        </div>
      </div>
    </div>
  </div>
  <script src="./../../public/js/jquery-1.12.4.js"></script>
  <script src="./../../public/js/bootstrap.min.js"></script>
</body>

</html>